#ifndef _common_
#define _common_
#include "list.h"
#include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h> 
#include <unistd.h>
#include <sys/ioctl.h>
#include <arpa/inet.h>
#include <net/if_arp.h> 
#include <net/if.h>
#include <pthread.h>




enum transmit_flag
{
push_flag = 1,
pull_flag,
init_flag
};

struct DataInfo 
{
	char *buf;
	unsigned int count;
	struct scokaddr addr_client;
}

struct trans_data_list
{
	struct 	list_head 	list1;
	char *buf;
	unsigned int count;
	struct scokaddr addr_client;

};

pthread_mutex_t rw_mutex0;

int push_pull_fifo(struct trans_data_list *, enum transmit_flag);

#endif



